package com.guanglan.dao;


import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.guanglan.domain.SysUserRole;

public interface SysUserRoleMapper {
	
    int deleteByPrimaryKey(Long id);

    int insert(SysUserRole record);

    int insertSelective(SysUserRole record);

    SysUserRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUserRole record);

    int updateByPrimaryKey(SysUserRole record);
    
    List<Long> selectByUserId(@Param("userId") long userId);

	int deleteByUserId(@Param("id") long userId);
	
	int deleteByRoleId(@Param("id") long roleId);
}